<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
﻿<html>
<!DOCTYPE html>
<html lang="en" class="no-js">
    <head>
        <meta charset="utf-8">
        <title>登录(Login)</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">
        <!-- CSS -->
        <link rel="stylesheet" href="http://localhost/e-shop/xiangqu/Application/Admin/View/Login/css/reset.css">
        <link rel="stylesheet" href="http://localhost/e-shop/xiangqu/Application/Admin/View/Login/css/style.css">
       	<script src="http://localhost/e-shop/xiangqu/Static/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
        <script src="http://localhost/e-shop/xiangqu/Static/hdjs/hdjs.mis.js" type="text/javascript" charset="utf-8"></script>
        <script type="text/javascript">
        	$(function(){
        		
        		$('input[name=username]').blur(function(){
        			var value = $(this).val();
        			if(!value){
        				$('#u').html('*用户名不能为空*');
        			}else{
        				$('#u').html('');
        			}
        		})
        		$('input[name=password]').blur(function(){
        			var value = $(this).val();
        			if(!value){
        				$('#p').html('*密码不能为空*');
        			}else{
        				$('#p').html('');
        			}
        		})
        		$('input[name=code]').blur(function(){
        			var value = $(this).val();
        			if(!value){
        				$('#c').html('*验证码不能为空*');
        			}else{
        				$('#c').html('');
        			}
        		})
        		
        		$('#login').submit(function(){
        			var uvalue = $('input[name=username]').val();
        			if(!uvalue){
        				$('#u').html('*用户名不能为空*');
        			}else{
        				$('#u').html('');
        			}
        			var pvalue = $('input[name=password]').val();
        			if(!pvalue){
        				$('#p').html('*密码不能为空*');
        			}else{
        				$('#p').html('');
        			}
        			var cvalue = $('input[name=code]').val();
        			if(!cvalue){
        				$('#c').html('*验证码不能为空*');
        			}else{
        				$('#c').html('');
        			}
        			if(!uvalue || !pvalue || !cvalue) return false;    			
 
        		})
        		
        		
        		
        		
        	})
        </script>

        <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
            <script src="http://localhost/e-shop/xiangqu/Application/Admin/View/Login/js/html5.js"></script>
        <![endif]-->
	<style type="text/css">
		#u{
			position: absolute;
			top: 0px;
			left: 0px;
			font: 400 12px/22px "微软雅黑";
			color: red;
		}
		#p{
			position: absolute;
			top: 70px;
			left: 0px;
			font: 400 12px/22px "微软雅黑";
			color: red;
		}
		#c{
			position: absolute;
			top: 140px;
			left: 0px;
			font: 400 12px/22px "微软雅黑";
			color: red;
		}
	</style>
    </head>

    <body>

        <div class="page-container">
            <h1>商城系统后台登录</h1>
            <form action="" method="post" id="login">
            	<span id="u"></span>
            	<span id="p"></span>
            	<span id="c"></span>
                <input type="text" name="username" class="username" placeholder="请输入您的用户名！">
                <input type="password" name="password" class="password" placeholder="请输入您的用户密码！">
                <input type="Captcha" class="Captcha" name="code" placeholder="请输入验证码！">
                <span id="img"><img src="<?php echo U(('code'));?>" id="codeimg" onclick="this.src+='&code='+Math.random()" /></span>
                <button type="submit" class="submit_button">登录</button>
            </form>
            <div class="connect">
            </div>
        </div>
		
    </body>
</div>
</html>

